Rails.application.routes.draw do
	# frontend plugins
  scope PluginRoutes.system_info["relative_url_root"] do
    scope "(:locale)", locale: /#{PluginRoutes.all_locales}/, :defaults => {  } do
      instance_eval(PluginRoutes.load("front"))
    end
  end

  # frontend zero cms
  scope PluginRoutes.system_info["relative_url_root"] do
  	scope "(:locale)", locale: /#{PluginRoutes.all_locales}/, :defaults => {  } do
  		root 'zero_cms/frontend#index', as: 'root'

  		controller "zero_cms/frontend" do
  			get :index
  		end
  	end
  end
end